<template>
  <div>
    <image-upload
      @upload-success="handleUploadSuccess1"
      :data="{ type: 'first' }"
    ></image-upload>
    <image-upload
      @upload-success="handleUploadSuccess2"
      :data="{ type: 'second' }"
    ></image-upload>
  </div>
</template>

<script>
export default {
  methods: {
    // 接收image-upload组件传递的res.data
    handleUploadSuccess1(data) {
      console.log("从image-upload接收的res.data：", data);
      // 这里可以处理接收到的data（例如保存到本地数据、提交到后端等）
    },
    handleUploadSuccess2(data) {
      console.log("从image-upload接收的res.data：", data);
    },
  },
};
</script>

<style>
</style>